<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<html>
	<head>
	
		<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
		<title></title>
		<link href="gko100/back/css/website.css" rel="stylesheet" />
		<script charset="utf-8" src="kindeditor/kindeditor.js"></script>
		<script charset="utf-8" src="kindeditor/lang/zh_CN.js"></script>
		<script charset="utf-8" src="kindeditor/plugins/code/prettify.js"></script>
		<script>
			KindEditor.ready(function(K) {
				var editor1 = K.create('textarea[name="disease.content"]', {
					cssPath : 'kindeditor/plugins/code/prettify.css',
					uploadJson : 'arti_image_add.action',
					fileManagerJson : 'file_manager_json.jsp',
					allowFileManager : false,
					afterCreate : function() {
						var self = this;
						K.ctrl(document, 13, function() {
							self.sync();
							document.forms['example'].submit();
						});
						K.ctrl(self.edit.doc, 13, function() {
							self.sync();
							document.forms['example'].submit();
						});
					}
				});
				var editor2 = K.create('textarea[name="disease.summary"]', {
					resizeType : 1,
					allowPreviewEmoticons : false,
					allowImageUpload : false,
					items : [
						'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', 'link']
					});
					prettyPrint();
				});
		</script>
		
		
		
	
	</head>
	<body>
			<s:if test="disease.disPid!=0">
				<table>
					<tr>
						<th>父模块</th>
						<th>模块名</th>
						<th>模块链接</th>
						<th>备注</th>
					</tr>
					<tr>
						<td>模块</td>
						<td><s:property value="disease.title" /></td>
						<td><s:property value="disease.url" /></td>
						<td><s:property value="disease.note" /></td>
					</tr>
				</table>
			
			</s:if>
			<s:form action="disease_add" name="example" method="post">
				<s:if test="disease.diseaseId!=null&&disease.diseaseId!=0">
					<s:hidden name="disease.disPid" value="%{disease.diseaseId}" />
				</s:if>
				
				<s:if test="disease.disPid==0">
					<s:select label="语言" name="selectLangId" list="langList" listKey="langId" listValue="langNote" headerKey="0" headerValue="--请选择--" />
					<s:hidden name="disease.disPid" value="0" />
				</s:if>
				
				<s:textfield  name="disease.title" value="" label="标题" />
				<s:textfield  name="disease.url" value="" label="链接" />
				<s:textfield  name="disease.note" value="" label="备注" />
				<s:textarea name="disease.summary" value="" cssStyle="width:700px;height:200px;visibility:hidden;" label="疾病知识简介" />	
				<s:textarea name="disease.content" value="" cssStyle="width:700px;height:200px;visibility:hidden;" label="疾病知识详细介绍" />	
				<s:submit value="添加新模块" />
			</s:form>

 
	</body>
</html>
			
			